<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>NoticeList</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html;">
</head>


<body>
<h2>공지사항</h2>
<hr>
	<table width="690" border="0"  cellspacing="0" cellpadding="0"
style="border-top-width: 7;border-top-color: black; border-top-style:groove;
       border-left-width: 0; border-left-style: hidden;
        " >
		<!-- title -->
		<tr style="padding-top: 50px">
			<td><strong>번호</strong></td>
			<td><strong>제목</strong></td>
			<td><strong>작성자</strong></td>
			<td><strong>작성일</strong></td>
			<td><strong>조회수</strong></td>
		</tr>
		
		
		<!-- list 있으면 -->
		<c:forEach var="bvo" items="${notice_list}">
			<tr>
			<td>${bvo.b_no}</td>
			<td>
			<a href="../community/board_view.do?b_no=${bvo.b_no }&menu_no=${menu_no}&cate_no=${cate_no}&title_no=${title_no}" class="num">
			${bvo.b_subject}
					<c:if test="${bvo.b_reply_count>0 }">
						[${bvo.b_reply_count }]
					</c:if>
			</a>		
			</td>
			<td>${bvo.b_writer}</td>
			<td>${bvo.b_writedate}</td>
			<td>${bvo.b_readhit}</td>
			</tr>
		
		</c:forEach>
		
		<!-- list없으면 -->
		<c:if test="${empty notice_list}">
			<tr>
			<td>현재등록된 글이 없습니다.</td>
			</tr>
		</c:if>		
		
		
		<!-- 글쓰기 -->
		<tr>
			<td colspan="5" align="right">
			<input type="button" value="글쓰기" class="pink_m_button"  onClick="JavaScript:location.href='../community/community_main.jsp?menu_no=${menu_no}&cate_no=${cate_no}&title_no=${title_no }&page=${nowPage}&state=notice_write'" >
			</td>
		</tr>
		
		</table>
		
		<!-- 검색 -->	
	<form action="" id="f">
		<table width="690" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td align="center">
			<select name="search_key">
			<option value="ALL">전체</option>
			<option value="제목">제목</option>
			<option value="작성자">작성자</option>
			<option value="내용">내용</option>
			<option value="제목내용">제목+내용</option>
			</select>
			<input type="text" name="search_value">
			<input type="button" class="pink_m_button"  value="검색" onclick="search()" >
			</td>
		</tr>

		<!-- 페이지 -->
		<tr>
			<td align="center">
				${PageHtml}
			</td>
		</tr>	
	</table>
</form>
		

</body>
</html>



